package com.wrk._1_语法._03_分支;

import java.util.Scanner;

public class _004_根据成绩判断等级1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入等级:");
        //等待输入
        String grade = scanner.nextLine();
        //定义变量
        String result = null;
        //switch语句，判断输入内容
        switch (grade){
            case "A":
                result ="优秀";
                break;
            case "B":
                result ="良好";
                break;
            case "C":
                result ="及格";
                break;
            case "D":
                result ="不及格";
                break;
            case "E":
                result ="未知等级";
                break;
        }
        System.out.println(result);
        scanner.close();
    }
}
